[C#] What does MissingManifestResourceException mean and how to fix it?

Posted by Timwi on Stack Overflow See other posts from Stack Overflow or by Timwi
Published on 2009-08-25T11:33:10Z Indexed on 2010/05/22 8:30 UTC
Read the original article Hit count: 288

Filed under:
|
|
|

The situation:

  • I have a class library, called RT.Servers, containing a few resources (of type byte[], but I don't think that's important)
  • The same class library contains a method which returns one of those resources
  • I have a simple program (with a reference to that library) that only calls that single method

I get a MissingManifestResourceException with the following message:

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Servers.Resources.resources" was correctly embedded or linked into assembly "RT.Servers" at compile time, or that all the satellite assemblies required are loadable and fully signed.

I have never played around with cultures, or with assembly signing, so I don't know what's going on here. Also, this works in another project which uses the same library. Any ideas?

Edit: I checked the .resx file; all the resources are marked as "Culture=neutral" there. Also, I noticed a similar question and went to check the namespace in Resources.Designer.cs, but it's correct (it's "RT.Servers").

© Stack Overflow or respective owner

Related posts about .NET

Related posts about culture